#!/bin/bash
#Test the SD Boot Button GPIO465 
./leds all off
./leds -t 1000 0 &
pid_leds=$!

./gpio_button -t 10 SW_USB=465
result=$?


#echo $result
kill -9 "$pid_leds"
./leds 0 off
[ $result -ne 0 ] && { echo "Switch USB FAIL"; exit 1; }
exit 0
